<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FilterHeadingTemplate.aspx.cs" Inherits="FilterHeadingTemplate" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" %>
<%@ OutputCache Duration="1" VaryByParam="none" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
     <title>Untitled Page</title>
    <base target="_self" />
<link href="Ip.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
		<div>
			<table style="width: 506px">
				<tr>
					<td><asp:Label ID="lblHeadingTemplate" runat="server" Text="<%$ Resources:Strings,ProcedureTemplate %>" /></td>
					<td><asp:TextBox ID="txtHeadingTemplate" runat="server" /></td>
					<td><asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:Strings,Search %>" Width="120px" OnClick="btnSearch_Click"  /></td>
				</tr>
			</table>
		</div>
		<div>
			<fieldset>
				<asp:GridView ID="gvwHeadingTemplate" runat="server" AllowPaging="True" AutoGenerateColumns="False"
					BackColor="#DEBA84" BorderColor="#660000" BorderStyle="None" BorderWidth="1px"
					CellPadding="3" DataSourceID="ODSHeadingTemplate" GridLines="Vertical" DataKeyNames="HeadingCode,Section" OnSelectedIndexChanged="gvwHeadingTemplate_SelectedIndexChanged" meta:resourcekey="gvwHeadingTemplateResource1">
					<Columns>
						<asp:BoundField DataField="HeadingCode" HeaderText="<%$ Resources:Strings,ProcedureTemplate %>">
							<ItemStyle Width="150px" />
						</asp:BoundField>
						<asp:BoundField DataField="HeadingName" HeaderText="<%$ Resources:Strings,Name %>">
							<ItemStyle Width="150px" />
						</asp:BoundField>
						<asp:BoundField DataField="Section" HeaderText="<%$ Resources:Strings,Section %>" />
						<asp:CommandField ShowSelectButton="True" ItemStyle-Width="100" ItemStyle-HorizontalAlign="center" ControlStyle-CssClass="btnEdit" SelectText="<%$ Resources:Strings,Select %>"/>
					</Columns>
					<HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
					<RowStyle CssClass="GridRowStyle"/>
					<AlternatingRowStyle CssClass="GridAltRowStyle"/>
					<SelectedRowStyle CssClass="GridSelectedRowStyle"/>
					<PagerStyle CssClass="GridPagerStyle"/>
					<FooterStyle CssClass="GridFooterStyle"/>
				</asp:GridView>
				<asp:ObjectDataSource ID="ODSHeadingTemplate" runat="server" OldValuesParameterFormatString="original_{0}"
					SelectMethod="GetsProcedureTmplt" TypeName="ClassLibrary.BusinessLayer.Facade.ProcedureTmpltFacade" OnSelecting="ODSHeadingTemplate_Selecting1">
					<SelectParameters>
						<asp:Parameter DefaultValue="_IPMS_HeadingTemplateSearch_SP" Name="SPName" Type="String" />
						<asp:Parameter DefaultValue="" Name="param" Type="Object" />
					</SelectParameters>
				</asp:ObjectDataSource>
			</fieldset>
		</div>
    </form>
</body>
</html>
